<!--{block return}-->
<!--{if !empty($_G['cache']['plugin']['touclick']) && $_G['cache']['plugin']['touclick']['stats']}-->
<script reload="1" type="text/javascript" language="javascript">
<!--{if ((in_array("login",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && !$_G['uid'] && empty($_GET['infloat']))}-->
function loginip(){
	if (document.getElementById("main_message")) {
		var buttons = document.getElementById("main_message").getElementsByTagName("button");
		for (var i = 0; i < buttons.length; i++) {
			if (buttons[i].getAttribute("type") == "submit" && buttons[i].getAttribute("name") == "loginsubmit") {
				var subt = buttons[i];
				var Father = subt.parentNode;
				Father.setAttribute("id", "tcflag");
				subt.setAttribute("id", "loginbtn");
				var newButton = document.createElement("Button");
				newButton.setAttribute("type", "button");
				newButton.onclick = function() {
					touclickFire('login', 4)
				};
				newButton.className = subt.className;
				newButton.style.width = subt.style.width;
				newButton.style.height = subt.style.height;
				subt.style.display = "none";
				newButton.innerHTML = subt.innerHTML;
				Father.insertBefore(newButton, subt);
				i = buttons.length
			}
		}
	}
}
loginip();
<!--{/if}-->

<!--{if ((in_array("login",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && !$_G['uid'] && !empty($_GET['infloat']))}-->
function loginif(){
	if (document.getElementById("fctrl_login") || document.getElementById("fctrl_newthread") || document.getElementById("messagelogin")) {
		var buttons = "";
		if(document.getElementById("fctrl_login")){
			buttons = document.getElementById("fctrl_login").parentElement.getElementsByTagName("button");
		}else if(document.getElementById("fctrl_newthread")){
			buttons = document.getElementById("fctrl_newthread").parentElement.getElementsByTagName("button");
		}else if(document.getElementById("messagelogin")){
			buttons = document.getElementById("messagelogin").getElementsByTagName("button");
		}
		for (var i = 0; i < buttons.length; i++) {
			if (buttons[i].getAttribute("type") == "submit" && buttons[i].getAttribute("name") == "loginsubmit") {
				var subt = buttons[i];
				var Father = subt.parentNode;
				Father.setAttribute("id", "tcflag");
				subt.setAttribute("id", "loginbtn");
				var newButton = document.createElement("Button");
				newButton.setAttribute("type", "button");
				newButton.onclick = function() {
					touclickFire('login', 4)
				};
				newButton.className = subt.className;
				newButton.style.width = subt.style.width;
				newButton.style.height = subt.style.height;
				subt.style.display = "none";
				newButton.innerHTML = subt.innerHTML;
				Father.insertBefore(newButton, subt);
				i = buttons.length
			}
		}
	}
}
loginif();
<!--{/if}-->

<!--{if ((in_array("reg",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && !$_G['uid'] && empty($_GET['infloat']))}-->
function touclickreg() {
    if (document.getElementById("registerformsubmit")) {
        var subt = document.getElementById("registerformsubmit");
        var Father = subt.parentNode;
        var newButton = document.createElement("Button");
        newButton.setAttribute("type", "button");
        newButton.onclick = function () {
            touclickFire('register', 5)
        };
        newButton.className = subt.className;
		newButton.style.width = subt.style.width;
		newButton.style.height = subt.style.height;
		subt.style.display = "none";
        newButton.innerHTML = subt.innerHTML;
        Father.insertBefore(newButton, subt)
    }
}
touclickreg();
<!--{/if}-->

<!--{if ((in_array("reply",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[mod] == 'post' && (in_array($_G['groupid'],(array)unserialize($_G['cache']['plugin']['touclick']['gids'])))  )}-->
function postifreply(){
	if (document.getElementById("postsubmit")) {
		var subt = document.getElementById("postsubmit");
		if(subt.getAttribute("name") == "replysubmit"){
			var Father = subt.parentNode;
			
			var newButton = document.createElement("Button");
			newButton.setAttribute("type", "button");
			newButton.onclick = function() {
				touclickFire('postIF', 2)
			};
			newButton.className = subt.className;
			newButton.style.width = subt.style.width;
			newButton.style.height = subt.style.height;
			subt.style.display = "none";
			newButton.innerHTML = subt.innerHTML;
			Father.insertBefore(newButton, subt)
		}
	}
}

postifreply();
<!--{/if}-->

<!--{if ((in_array("thread",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[mod] == 'post' && (in_array($_G['groupid'],(array)unserialize($_G['cache']['plugin']['touclick']['gids'])))  )}-->

function postifthread(){
	if (document.getElementById("postsubmit")) {
		var subt = document.getElementById("postsubmit");
		if(subt.getAttribute("name") == "topicsubmit"){
			var Father = subt.parentNode;
			
			var newButton = document.createElement("Button");
			newButton.setAttribute("type", "button");
			newButton.onclick = function() {
				touclickFire('postIF', 1)
			};
			newButton.className = subt.className;
			newButton.style.width = subt.style.width;
			newButton.style.height = subt.style.height;
			subt.style.display = "none";
			newButton.innerHTML = subt.innerHTML;
			Father.insertBefore(newButton, subt)
		}
	}
}

postifthread();
<!--{/if}-->

</script>
<!--{/if}-->
<!--{/block}-->